package demo4.controller;

import demo4.mapper.IUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserController {
    @Autowired
    private IUserMapper userMapper;
    public void regUser(){
        System.out.println("UserController:开始进行用户注册");
        userMapper.selectUsername("");
        userMapper.insert(null);
        System.out.println("UserController:用户注册结束");
    }
}
